<?php
namespace app\sw\model;

use think\Model;

class FileModel extends Model{
    protected $name = 'sw_file';
    protected $pk = 'id';


    public function sheets(){
        return $this->hasMany(SheetModel::class, 'excel_file_id', 'id');
    }

}   